class LoggingButton extends React.Component {

    handleClick() {
        console.log("this is ", this);
    };

    render() {
        return (
            <button onClick={this.handleClick}>
                Click me, auto bind this by lambda
            </button>
        );
    }
}

ReactDOM.render(
    <LoggingButton />,
    document.getElementById('loggingButton')
);
